<html>
	<head>
		<title>Extend Test</title>
		<script type="text/javascript" src="../../js/Bs/lang/Bs.lang.Object.js"></script>
	</head>
	<body>
		<script type="text/javascript">
			Car = function (props) {
				Car.superclass.constructor.call(this, props);
			};
			Lang.extend (Car, Bs.lang.Object, {
        		constructor: function(config){
            		console.log("car constructor");
            		Lang.copy (this, config)
        		},
        		color: 'red',
        		description: {
            		gears: 4,
            		year: 1980
        		},
        		getColor: function(){
            		return 'actual color ' + this.color;
        		},
        		getMake: function(){
            		throw 'unimplemented method';
        		}
        	});
        	var car = new Car ({color: 'green'});
        	alert (car.serialize ());
		</script>
	</body>
</html>    